package com.ngc.mall.controller;

import com.ngc.mall.common.configure.response.ResponseResult;
import com.ngc.mall.service.ICosService;
import com.ngc.mall.vo.CosConfigVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *  腾讯云COS
 *
 * @author : Chen Xiao Lin
 * @Date : 2023/3/31 15:16
 **/

@RestController
@RequestMapping("/COS")
public class CosController {
    @Resource
    private ICosService service;

    @GetMapping("")
    public ResponseResult<CosConfigVO> getCosConfig(){
        return ResponseResult.success(service.getCosSecretConfig());

    }
}
